import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const Brands = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })],
    })
});
export const List = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })],
        totalElements: 'number'
    })
});

export const PWC = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })],
        totalElements: 'number? | null'
    })
});

export const Detail = itf({
    payload: itf({
        id: 'string',
        partDutyUnits: [itf({
            dutyUnitId: 'string'
        })],
        partServicePrices: [itf({
            brandId: 'string',
        })]
    })
});

export const Categories = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })]
    })
});

export const Part = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })]
    })
});

export const ProductCategory = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
            type: 'string? | null'
        })]
    })
});

export const Assist = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })]
    })
});

export const ProductCategoryList = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
                remark: 'string? | null',
            })
        ]
    })
});
